<?php

namespace App\Models\users;

use App\Models\BaseModel;

class UsersModel extends BaseModel
{
    protected $table = 'users';
    protected $primaryKey = 'id';
    public $timestamps = true;
    public const CREATED_AT = null;
    public const UPDATED_AT = null;

    public function userSetting(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(UsersSettingModel::class, 'uid', 'id');
    }

    public function userBank(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(UsersBankModel::class, 'uid', 'id');
    }
}
